﻿<Window
    x:Class="WindowsPhone.ScreenshotPowerTools.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Height="350" Width="525" Background="{DynamicResource {x:Static SystemColors.ControlBrushKey}}">
    <TabControl Margin="7">
        <TabItem Header="Panorama">
            <Grid Margin="7">
                <Grid.RowDefinitions>
                    <RowDefinition/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition/>
                        <RowDefinition Height="Auto"/>
                    </Grid.RowDefinitions>
                    <Label Content="Screenshots:"/>
                    <ListBox ItemsSource="{Binding Screenshots}" Margin="5,0" Grid.Row="1"/>
                    <Button x:Name="ChooseButton" Content="Choose screenshots..." Margin="5,7,5,6" Grid.Row="2" Click="ChooseButton_Click"/>
                </Grid>
                <StackPanel Grid.Row="1">
                    <Label Content="Chassis position:"/>
                    <TextBox Text="{Binding ChassisPosition, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Margin="5,0" Grid.Column="1"/>
                    <Button Content="Create panorama..." Command="{Binding SaveCommand}" Margin="5,7,5,-2"/>
                </StackPanel>
            </Grid>

        </TabItem>
        <TabItem Header="About">
            <StackPanel Margin="7">
                <TextBlock x:Name="AppNameElement"/>
                <TextBlock x:Name="VersionElement"/>
                <TextBlock>
                    <Hyperlink NavigateUri="http://wpscreenshot.codeplex.com" RequestNavigate="Hyperlink_RequestNavigate">
                        <Run Text="Project Information"/>
                    </Hyperlink>
                </TextBlock>
            </StackPanel>
        </TabItem>
    </TabControl>
</Window>
